package mest.dao.hank;

import mest.entity.plan_productjob_takematerial;
import mest.entity.plan_productjob_takematerial_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_productjob_takematerialMapper {
    int deleteByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int insert(plan_productjob_takematerial record,@Param("theirDb")String theirDb);

    int insertSelective(plan_productjob_takematerial record,@Param("theirDb")String theirDb);

    plan_productjob_takematerial selectByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int updateByPrimaryKeySelective(plan_productjob_takematerial record,@Param("theirDb")String theirDb);

    int updateByPrimaryKey(plan_productjob_takematerial record,@Param("theirDb")String theirDb);

    int intsertList(@Param("plan_productjob_takemateriallist") List<plan_productjob_takematerial> record,@Param("theirDb")String theirDb);

    //通过ptid查询
    List<Map>  queryAllModel_byId (@Param("index") Integer index,
                              @Param("pageSize") Integer pageSize,
                              @Param("ptId") Integer ptId,@Param("theirDb")String theirDb);
    /**
     * 2.model 总行数查询
     * @param ptId
     * @return
     */
    int findCount(Integer ptId,@Param("theirDb")String theirDb);


    int updateByone(@Param("theirDb") String theirDb,@Param("list") List<plan_productjob_takematerial_record> record);

}